<!DOCTYPE html>
<html lang="zh-Hans">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    
    <title>chili的博客</title>
    <meta name="viewport" content="width=device-width,minimum-scale=1">
    <meta name="generator" content="Hugo 0.72.0" />
    
    
      <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
    

    
    
      <link href="/dist/css/app.4fc0b62e4b82c997bb0041217cd6b979.css" rel="stylesheet">
    

    

    
      

    

    
    
      <link href="/index.xml" rel="alternate" type="application/rss+xml" title="chili的博客" />
      <link href="/index.xml" rel="feed" type="application/rss+xml" title="chili的博客" />
      
    
    
    <meta property="og:title" content="chili的博客" />
<meta property="og:description" content="" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://chili2000.github.io/" />
<meta property="og:updated_time" content="2020-06-22T22:06:03+08:00" />
<meta itemprop="name" content="chili的博客">
<meta itemprop="description" content=""><meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="chili的博客"/>
<meta name="twitter:description" content=""/>

	
  </head>

  <body class="ma0 avenir bg-near-white">

    

  <header>
    <div class="pb3-m pb6-l bg-black">
      <nav class="pv3 ph3 ph4-ns" role="navigation">
  <div class="flex-l justify-between items-center center">
    <a href="/" class="f3 fw2 hover-white no-underline white-90 dib">
      
        chili的博客
      
    </a>
    <div class="flex-l items-center">
      

      
      















    </div>
  </div>
</nav>

      <div class="tc-l pv3 ph3 ph4-ns">
        <h1 class="f2 f-subheadline-l fw2 light-silver mb0 lh-title">
          chili的博客
        </h1>
        
      </div>
    </div>
  </header>


    <main class="pb7" role="main">
      
  <article class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy mid-gray">
    
  </article>
  
  
  
  
  
  
  
    
    

    <div class="pa3 pa4-ns w-100 w-70-ns center">
      
       
          <h1 class="flex-none">
            Recent Posts
          </h1>
        

      

      <section class="w-100 mw8">
        
        
          <div class="relative w-100 mb4">
            
<article class="bb b--black-10">
  <div class="db pv4 ph3 ph0-l no-underline dark-gray">
    <div class="flex flex-column flex-row-ns">
      
      <div class="blah w-100">
        <h1 class="f3 fw1 athelas mt0 lh-title">
          <a href="https://chili2000.github.io/posts/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8githubpages%E9%A2%84%E8%A7%88html/" class="color-inherit dim link">
            如何使用GitHubPages预览HTML
            </a>
        </h1>
        <div class="f6 f5-l lh-copy nested-copy-line-height nested-links">
          如何使用GitHub Pages预览 HTML 在使用Hugo搭建博客的基础上进行以下操作：   创建GitHub rope 仓库名为xxx. github. io 其它别动直接创建 注意xxx是GitHub的用户名
  创建本地仓库 新建 . gitignore文件内容为
/public/
切换到public目录
git init
git add .
git commit -v 第一次部署
  关联远程仓库
git remote add origin ………（注意git@开头）
git push -u origin master
  打开Github pages
  
        </div>
          <a href="https://chili2000.github.io/posts/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8githubpages%E9%A2%84%E8%A7%88html/" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">read more</a>
        
      </div>
    </div>
  </div>
</article>

          </div>
        
          <div class="relative w-100 mb4">
            
<article class="bb b--black-10">
  <div class="db pv4 ph3 ph0-l no-underline dark-gray">
    <div class="flex flex-column flex-row-ns">
      
      <div class="blah w-100">
        <h1 class="f3 fw1 athelas mt0 lh-title">
          <a href="https://chili2000.github.io/posts/%E5%A6%82%E4%BD%95%E7%94%A8hugo%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2/" class="color-inherit dim link">
            如何用hugo搭建个人博客
            </a>
        </h1>
        <div class="f6 f5-l lh-copy nested-copy-line-height nested-links">
          如何用hugo搭建个人博客 安装Hugo  去hugo 下载Hugo-xxx-windows-64.bit.zip 解压 将安装包解压到d:\software\hugo\ 设置环境变量 将d:\software\hugo加入path 重启vscode终端 运行 Hugo version 命令查看版本并且验证安装是否成功  搭建博客   创建一个空文件夹study 进入目录
cd study
  进入hugo 复制step2~7的代码 如下解释：
    step2: Hugo new site xxx. github. io-creator 建立新网站创建博客生成器 注意xxx是在GitHub的用户名并且是小写
  step3: cd xxx. github. io-creator
git init
git submodule add https://github.com/budparr/gohugo-theme-ananke.git themes/ananke echo &lsquo;theme = &ldquo;ananke&rdquo;&rsquo; &raquo; config.toml 添加主题配置   step4: hugo new posts/my-first-post.md 创建并进行博客内容编写 （直接在已有的内容上往下编写 draft属性可改成false 即所以人可见 默认ture为仅自己可见 languageCode = &ldquo;zh-Hans&rdquo;）
        </div>
          <a href="https://chili2000.github.io/posts/%E5%A6%82%E4%BD%95%E7%94%A8hugo%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2/" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">read more</a>
        
      </div>
    </div>
  </div>
</article>

          </div>
        
          <div class="relative w-100 mb4">
            
<article class="bb b--black-10">
  <div class="db pv4 ph3 ph0-l no-underline dark-gray">
    <div class="flex flex-column flex-row-ns">
      
      <div class="blah w-100">
        <h1 class="f3 fw1 athelas mt0 lh-title">
          <a href="https://chili2000.github.io/posts/my-second-post/" class="color-inherit dim link">
            My Second Post
            </a>
        </h1>
        <div class="f6 f5-l lh-copy nested-copy-line-height nested-links">
          ！！ 你可以来这里找我哦
        </div>
          <a href="https://chili2000.github.io/posts/my-second-post/" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">read more</a>
        
      </div>
    </div>
  </div>
</article>

          </div>
        
      </section>

      
      <section class="w-100">
        <h1 class="f3">More</h1>
        
        
          <h2 class="f5 fw4 mb4 dib mr3">
            <a href="https://chili2000.github.io/posts/my-first-post/" class="link black dim">
              My First Post
            </a>
          </h2>
        

        
        
          <a href="https://chili2000.github.io/posts/" class="link db f6 pa2 br3 bg-mid-gray white dim w4 tc">All Posts</a>
        
        </section>
      

      </div>
  

    </main>
    <footer class="bg-black bottom-0 w-100 pa3" role="contentinfo">
  <div class="flex justify-between">
  <a class="f4 fw4 hover-white no-underline white-70 dn dib-ns pv2 ph3" href="https://chili2000.github.io/" >
    &copy;  chili的博客 2020 
  </a>
    <div>














</div>
  </div>
</footer>

    

  <script src="/dist/js/app.3fc0f988d21662902933.js"></script>


  </body>
</html>
